package com.tuozixuan.forest.api;

import java.util.List;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("/test")
public interface TestApi {

	@GetMapping("/testGetRequest")
	String testGetRequest(@RequestParam String id);
	
	@GetMapping("/getUserNameById")
	String getUserNameById(@RequestParam String id);
	
	@GetMapping("/getUserNamesByIds")
	List<String> getUserNamesByIds(@RequestParam String[] ids);
	
	@RequestMapping("/addUser")
	boolean addUser();
	
	@RequestMapping("/addUser2")
	boolean addUser2();
	
	@RequestMapping("/addUserWithException")
	boolean addUserWithException();
	
	@RequestMapping("/asyncAddUser")
	boolean asyncAddUser();
	
	@RequestMapping("/asyncAddUserAndGet")
	boolean asyncAddUserAndGet();
}
